﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using UserRepositorys;

namespace UserLicense.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class UserController : ControllerBase
    {
        public readonly UserDbcontext _db;
        public UserController(UserDbcontext db)
        {
            _db = db;
        }
        /// <summary>
        /// 数据迁移
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public string CreateData()
        {
            _db.CreateTable();
            return "ok";
        }
    }
}
